package org.example.model;

import javafx.beans.property.StringProperty;

/**
 * @Author: wwy
 * @Date: 2020/12/2 17:04
 */
public class Settings {
    private final long id;
    private final StringProperty startInterval;
    private final StringProperty planInterval ;
    private final StringProperty timeOut;

    public Settings(long id, StringProperty startInterval, StringProperty planInterval, StringProperty timeOut) {
        this.id = id;
        this.startInterval = startInterval;
        this.planInterval = planInterval;
        this.timeOut = timeOut;
    }

    public long getId() {
        return id;
    }

    public String getStartInterval() {
        return startInterval.get();
    }

    public StringProperty startIntervalProperty() {
        return startInterval;
    }

    public void setStartInterval(String startInterval) {
        this.startInterval.set(startInterval);
    }

    public String getPlanInterval() {
        return planInterval.get();
    }

    public StringProperty planIntervalProperty() {
        return planInterval;
    }

    public void setPlanInterval(String planInterval) {
        this.planInterval.set(planInterval);
    }

    public String getTimeOut() {
        return timeOut.get();
    }

    public StringProperty timeOutProperty() {
        return timeOut;
    }

    public void setTimeOut(String timeOut) {
        this.timeOut.set(timeOut);
    }

    @Override
    public String toString() {
        return "Settings{" +
                "id=" + id +
                ", startInterval=" + startInterval +
                ", planInterval=" + planInterval +
                ", timeOut=" + timeOut +
                '}';
    }
}
